/*
 * Copyright (c) 2023, 2024,yzc.cn All rights reserved.
 *
 */
package com.by.controller;

import com.by.common.bean.Result;
import com.by.pojo.PurReturn;
import com.by.server.PurReturnServer;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>Project: erp-cloud-api - PurReturnController</p>
 * <p>Powered by yzc On 2024-01-18 14:24:16</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@RestController
@RequestMapping("/v1/pur/return")
@Api(tags ={"退款管理"})
public class PurReturnController {
    @Autowired
    PurReturnServer purReturnServer;
    @PostMapping("/save")
    public Result save(@RequestBody PurReturn purReturn){
        int rs = purReturnServer.save(purReturn);
        if (rs > 0)
            return Result.success("添加退货成功");
        return Result.error("添加退货失败");
    }

}
